package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TMsg;
import com.bootdo.project.dao.TMsgMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TMsgService {

	@Autowired
    private TMsgMapper tMsgMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tMsgMapper.deleteByPrimaryKey(id);
    }

    public int insert(TMsg record){
        return tMsgMapper.insert(record);
    }

    public int insertSelective(TMsg record){
        return tMsgMapper.insertSelective(record);
    }

    public TMsg selectByPrimaryKey(Long id){
        return tMsgMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TMsg record){
        return tMsgMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TMsg record){
        return tMsgMapper.updateByPrimaryKey(record);
    }

    public List<TMsg> selectByCondition(TMsg record){
        return tMsgMapper.selectByCondition(record);
    }

    public List<TMsg> selectAll(){
        return tMsgMapper.selectAll();
    }

    public List<TMsg> selectByPage(Page<TMsg> page){
        return tMsgMapper.selectByPage(page);
    }

    public Integer count(TMsg record){
        return tMsgMapper.count(record);
    }

    public int deleteByCondition(TMsg record){
        return tMsgMapper.deleteByCondition(record);
    }

}
